<?php
/**
 * Created by PhpStorm.
 * User: wuz
 * Date: 2016/8/11
 * Time: 13:55
 */
if (!$fp = fopen("./wzj.txt", "r")) {
    echo "文件被创建" . "<br>";
}
$num = fgets($fp, 12);
if ($num == '') {
    $num = 0;
}
$num++;
@fcolse($fp);
$fp = fopen("wzj.txt", "w");
fwrite($fp, $num);
fclose($fp);
echo "你是第" . $num . "位浏览者";
